package com.example.tianling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.tianling.common.vo.bookListVo;
import com.example.tianling.common.vo.materialCollectionListVo;
import com.example.tianling.entity.MaterialCollectionsEntity;
import com.example.tianling.entity.UserBookMarksEntity;

import java.text.ParseException;
import java.util.List;

public interface MaterialCollectionsService extends IService<MaterialCollectionsEntity> {
    Integer setMaterialCollection(MaterialCollectionsEntity materialCollectionsEntity, Integer userId) throws ParseException;
    List<materialCollectionListVo> getMyMaterialCollections(Integer userId, Integer pageNum);
    Integer cancelMyMaterialCollection(Integer userId ,Integer bookId);

    Integer isCollectMaterial(Integer userId ,Integer materialId);
}
